import request from '@/utils/request'

//统一字典下拉框查询
export function adminDict(params) {
    return request({
        url: `common/v1/adminDict`,
        method: 'get',
        params
    })
}

// 权益卡转赠配置列表
export function equityConfigList(query) {
  return request({
    url: '/equity/card/donation/config/list',
    method: 'get',
    params: query
  })
}

//转赠管理
export function setDonation(data) {
    return request({
        url: `/equity/card/donation/config/setDonation`,
        method: 'put',
        data
    })
}
//手续费配置
export function setFee(data) {
    return request({
        url: `/equity/card/donation/config/setFee`,
        method: 'put',
        data
    })
}
//前端NFR记录按钮是否显示
export function donationShow(params) {
    return request({
        url: `/equity/card/donation/config/donationShow`,
        method: 'put',
        params
    })
}
//获取 前端NFR记录按钮
export function getdonationShow() {
    return request({
        url: `/equity/card/donation/config/donationShow`,
        method: 'get',
    })
}

//权益卡转赠配置详情
export function configDetail(id) {
    return request({
      url: '/equity/card/donation/config/detail/' + id,
      method: 'get'
    })
  }

// 中台-权益卡转赠明细列表
export function equityRecordList(params) {
    return request({
      url: '/equity/card/donation/record/list',
      method: 'get',
      params
    })
  }
